<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>登录</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="联系人管理系统,">
<meta http-equiv="description" content="联系人管理系统">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
	href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" />
<script src="js/Login.js"></script>

<link rel="stylesheet" href="css/form.css" />

</head>

<body>
	<div class="container">
		<form class="form" id="form" name="input" action="loginCheck"
			method="POST">
			<%
				if ("false".equals(request.getAttribute("login"))) {
			%>
			<h2>登录失败！请检查帐号或密码！</h2>
			<%
				} else {
			%>
			<h2>登录</h2>
			<%
				}
			%>

			<input class="form-control" id="username" type="text"
				placeholder="用户名" name="username" /> <input class="form-control"
				id="password" type="password" placeholder="密码" name="password" /> <input
				class="btn btn-lg btn-primary btn-block" id="login" type="button"
				onclick="log()" value="登录" /> <a href="register"> <input
				class="btn btn-lg btn-primary btn-block" id="login" type="button"
				value="注册" /></a>
		</form>
	</div>

</body>
</html>
